class API_YBYC{
  static async get_address(qs = {}) {
    return await global["vapp"].config.globalProperties.$axios_get("/ogc/ping?", qs, false, false)
  }
  static async get_ping(url,qs = {}) {
    return await global["vapp"].config.globalProperties.$axios_get(url ? url + "/ping?" :"/ping?", qs, false, true,100)
  }
  static async get_layers(qs = {}) {
    return await global["vapp"].config.globalProperties.$axios_get("/ogc/get_layers?", qs, false, true)
  }
  static async get_s3_links(qs = {}) {
    return await global["vapp"].config.globalProperties.$axios_get("/con/get_s3_links?", qs, false, true)
  }
  static async update_s3_link(qs = {}) {
    return await global["vapp"].config.globalProperties.$axios_post("/con/update_s3_link?", qs, false, true)
  }
  static async delete_s3_link(qs = {}) {
    return await global["vapp"].config.globalProperties.$axios_post("/con/delete_s3_link?", qs, false, true)
  }
  static async test_s3_link(qs = {}) {
    return await global["vapp"].config.globalProperties.$axios_post("/con/test_s3_link?", qs, false, true)
  }
  static async add_wmts(qs = {}) {
    return await global["vapp"].config.globalProperties.$axios_post("/ogc/add_wmts?", qs, false, false)
  }
  static async del_wmts(qs = {}) {
    return await global["vapp"].config.globalProperties.$axios_post("/ogc/del_wmts?", qs, false, false)
  }

  

  

}
export function apis_set(){
  global["vapp"].config.globalProperties.$apis =API_YBYC
}